package com.yanqu.road.entity.activity.hell;

import com.yanqu.road.entity.DataObject;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class HellUserData extends DataObject {

    private int activityId;

    private long userId;

    //一共获得多少积分
    private long integral;

    //npc产生了多少个
    private int npcCount;

    //每个npc qualityId,no
    private Map<Integer, Map<Integer,HellNpc>> npcMap = new ConcurrentHashMap();

    private long updateTime;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getIntegral() {
        return integral;
    }

    public void setIntegral(long integral) {
        if(integral != this.integral){
            this.integral = integral;
            setUpdateOption();
        }
    }

    public int getNpcCount() {
        return npcCount;
    }

    public void setNpcCount(int npcCount) {
        if(npcCount != this.npcCount){
            this.npcCount = npcCount;
            setUpdateOption();
        }
    }

    public Map<Integer, Map<Integer, HellNpc>> getNpcMap() {
        return npcMap;
    }

    public void setNpcMap(Map<Integer, Map<Integer, HellNpc>> npcMap) {
        this.npcMap = npcMap;
        setUpdateOption();
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        if(updateTime != this.updateTime){
            this.updateTime = updateTime;
            setUpdateOption();
        }
    }
}
